Arcadia Interview Question

Some questions based on Java and C++ and some questions based on different graphs