HomeX Interview Question

Q) Online Javascript Algorithm solving.