Tecore Interview Question

Some coding questions?