Lloyds Banking Group interview question

Coding questions with test cases