Fast solution added. Fixed Corner case for Bruteforce solution