There is record of all residents in society, the records also contain data of a resident has ServiceLadder. You have already asked your neighbours and they have confirmed that they don’t have the service ladder, what is the most efficient way to traverse given the records of residents in form of graph.