J.P. Morgan interview question

Not tough basic selenium java