Birdeye interview question

JAVA, SQL, Algorithms