Flip Robo interview question

nothing much difficult i got through data trained