Goldman Sachs Interview Question

Online Assessment 1) Forgot the Exact Question 2) Given a String and a key to it. Asked to encode and decode the String based on that. White Board Interview Questions(Most of the code and Testcases will appear, you have to complete a method) 1) A robot can move in 4 directions. 'U' - UP, 'D' - DOWN, 'L'- LEFT, 'R'-RIGHT. Ignore all teh other. The position of the robot can be identified by array[x][y]. Please completed the method which returns the final position of the robot. private static Integer[][] findIndex(String testCase){ return new Integer[0][0]; } Here the testcase contains the characters like 'ULLLDDUU STRULR'; 2) A child climbing stairs which has N number of Steps. To add fun to it child can climb 1 or 2 or 3 at a time. Find the number of ways the child can climb the N number of steps?