Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a program to check if two hardcoded strings are rotations of each other.

Medium

Problem Statement

Create a program to check if two hardcoded strings are rotations of each other.

Sample Input

String 1: "abcd", String 2: "dabc"

Sample Output

Are Rotations: True

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
using System; class StringRotationCheck { static void Main() { // Check if the two strings are rotations of each other } }
Log in or sign up to run or submit your code.Log inSign up
Input
String 1: "abcd", String 2: "dabc"
Expected Output
Are Rotations: True