Help rahul to search

1 test case has failed https://ide.codingblocks.com/s/218140

hello @vanisinghal0201 ,
image

dont put -1 anywhere. use some boolean variable to check whether key is found of not .
if it is found then no need to print -1.

otherwise print -1.

refer this - > https://ide.codingblocks.com/s/218150