[C++ Solution] | BruteForce | Easy to Read
There are 2 choices either take the exact time that is 669 seconds can be written as 11 minutes and 09 seconds or we can write it as 10 minutes and 69 seconds. 
There are 2 choices either take the exact time that is 669 seconds can be written as 11 minutes and 09 seconds or we can write it as 10 minutes and 69 seconds. \nAnd there would be some edge cases that such as:\n If minutes are greater than 99 then we cannot take 100 minutes and 39 seconds we need to take 99 minutes and 99 seconds.....\n\n```\nclass Solution {\npublic:\n    int minCostSetTime(int startAt, int moveCost, int pushCost, int targetSeconds) {\n        int ans=INT_MAX;       \n        \n        string x = to_string(targetSeconds/60),y = to_string(targetSeconds%60);\n        int tmp=0,tmp1=startAt;\n        if(x.length() == 1 && x[0] != \'0\')\n        {\n            if(tmp1 != (x[0]-\'0\'))\n                tmp += moveCost,tmp1 = x[0]-\'0\';\n            tmp += pushCost;\n        }\n        else if(x.length() == 2)\n        {\n            if(tmp1 != (x[0]-\'0\'))\n                tmp += moveCost,tmp1 = x[0]-\'0\';\n            tmp += pushCost;\n            \n            if(tmp1 != (x[1]-\'0\'))\n                tmp += moveCost,tmp1 = x[1]-\'0\';\n            tmp += pushCost;   \n        }\n        \n        if(y.length() == 1)\n        {\n            if(x[0] != \'0\')\n            {\n                if(tmp1 != 0)\n                    tmp += moveCost,tmp1 = 0;\n                tmp += pushCost;\n            }\n            if(tmp1 != (y[0]-\'0\'))\n                tmp += moveCost,tmp1 = y[0]-\'0\';\n            tmp += pushCost;\n        }\n        else if(y.length() == 2)\n        {\n            if(tmp1 != (y[0]-\'0\'))\n                tmp += moveCost,tmp1 = y[0]-\'0\';\n            tmp += pushCost;\n            \n            if(tmp1 != (y[1]-\'0\'))\n                tmp += moveCost,tmp1 = y[1]-\'0\';\n            tmp += pushCost;   \n        }\n        if(x.length() < 3)\n            ans = min(ans,tmp);\n        \n        tmp=0;\n        if(((targetSeconds%60) + 60) > 99 || targetSeconds/60 == 0)\n            return ans;\n\n        x = to_string(max(0,(targetSeconds/60) - 1)),y = to_string((targetSeconds%60) + 60);\n        tmp1=startAt;\n\n        if(x.length() == 1 && x[0] != \'0\')\n        {\n            if(tmp1 != (x[0]-\'0\'))\n                tmp += moveCost,tmp1 = x[0]-\'0\';\n            tmp += pushCost;\n        }\n        else if(x.length() == 2)\n        {\n            if(tmp1 != (x[0]-\'0\'))\n                tmp += moveCost,tmp1 = x[0]-\'0\';\n            tmp += pushCost;\n            \n            if(tmp1 != (x[1]-\'0\'))\n                tmp += moveCost,tmp1 = x[1]-\'0\';\n            tmp += pushCost;   \n        }\n        if(y.length() == 1)\n        {\n            if(x[0] != \'0\')\n            {\n                if(tmp1 != 0)\n                    tmp += moveCost,tmp1 = 0;\n                tmp += pushCost;\n            }\n            if(tmp1 != (y[0]-\'0\'))\n                tmp += moveCost,tmp1 = y[0]-\'0\';\n            tmp += pushCost;\n        }\n        else if(y.length() == 2)\n        {\n            if(tmp1 != (y[0]-\'0\'))\n                tmp += moveCost,tmp1 = y[0]-\'0\';\n            tmp += pushCost;\n            \n            if(tmp1 != (y[1]-\'0\'))\n                tmp += moveCost,tmp1 = y[1]-\'0\';\n            tmp += pushCost;   \n        }\n        ans = min(ans,tmp);\n        \n        return ans;        \n    }\n};\n```
['C']