I just want the TA’s to confirm whether this is a correct solution or not. My code is successfully passing all test cases, but there are only two test cases so please check if my code is optimal or not.
Here is a link to my code:
Thanks in advance