UST interview question

Two coding questions Two error-fixing questions maths for programming Logic