Société Générale Interview Question

Basic questions on java and dsa