javascript algo for www.codersbracket.com