Upstox interview question

Java Basics