Coforge Interview Question

How can we handle NosuchElementFound Exception.