created a sample code for Robots Legs Problem.