<algo> Solutions to some TC and hackerrank problems