Coforge interview question

How can we handle NosuchElementFound Exception.