Indeed Interview Question

matrix sorted in each col and row individually, find one number given in parameter, return its position