IBM Interview Question

Find three bugs in a typescript function