Gainwell Technologies Interview Question

They asked a simple algorithm question and a question about HTML forms