Each code is a solution to the question put forward by an instagram account by the username: nextgencoder
Write a program which will check the result of a tic tac toe game with the input of three lists with the input of 'X' , 'O' or '-'. We to check who won the game. 'X' is a mark for player 1 'O' is a mark for player 2 '-' is a blank space
test cases: [X,O,-] [O,X,-] Player 1 won [-,O,X]
[X,O,-] [X'O'-] Player 2 won [-,O,X]
[X,O,-] [O,X,X] Draw [O,X,O]
[X,O,-] [O,9,X] Error [O,X,O]
Write a program to check if an entered string is a Palindrome, Partially Palindrome or not Palindrome.
Test cases: "ABABA" YES "ABBAA" PARTIALLY "NEXTGEN" NO "Ababa" YES "" NO
Write a program to input a number less than 50 and print its Roman Numeral.
Test cases: 1 I 50 L 55 ERROR 42 XLII 24 XXIV 0 ERROR
Write a program which will take one string as input and and gives every possible rotation of characters until the first character returns to position
Test cases: "next" [ extn xtne tne ] "gen" [ eng nge ] "coder" [ oderc derco ercod rcode ] "" [ ]