this is the solution for GATE 2014 mechanical 15feb mrng session