QualityAI Interview Question

implementing a code that gets a natual number and an array/list. The program returns True if the number exists and False otherwise using a loop.