This repo deals with developing algorithm which they copied from stackoverflow