BookKeeper Interview Question

find last missing no of array