Frage im Vorstellungsgespräch bei YouTube

One problem to be coded in Java. Exception handling, complexity measurement and optimization of the problem.