Lower upper code not working

my code is not working can you please check it

@Amogh_Agarwal In your submitted code you have hard coded the array values. array should be taken input form user along with int X. And there can be multiple Elements that need to be found.
Check Input format Correctly.