samsung hiring challenge

sir plz provide your expected inputs or else how would we know that our program is right or wrong because my code is matching the inputs nd outputs given in the description