i am unable to understand that if the key is 2 how the output is 5
If the key is 2 how the output is 5
hi @bhavyac888_4c41066a0fcdb581 in that case also key is 3 only he jsut replaced 3 with2 in array not in function call
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.