Linear search solution | ScratchStats