This repository contains geeksforgeek question implementation, which I think is best.