LTM Limited Interview Question

How do you handle NoSuchElementException