Calculating time complexity new examples geeksforgeeks