PAIR OF ROSES question doubt


what is the problem with this approach.
MY ANSWER S COMING CORRECT BUT TESTCASE IS FALING

@sarthakbuddy you have to give a full stop at the end of every line do it and you are good to go.