Google interview question

Solve this code using Java

Interview Answer

Anonymous

3 June 2023

Solved it using java through methods