solution to some techgig contest problems