EXL Service interview question

Build python function, if x is there in list return true