thank you for solving my doubt
Fails(run error ) for test cases 0 and test case 3
what if h1 is null but h2 is not null in that case ans should be h2 but your code is returning null in that case
kindly ask your doubts here directly for quick response
Modified Code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.