title: Simple Time Complexity Calculation
body: <p>I am new to Time Complexity, and now started solving problems,
  I am not sure about whether I am correct, pleash tell me if I do, and if not,
  how you calculated it.</p>
  
  <p><a href="https://i.stack.imgur.com/8YmW0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8YmW0.png" alt="This is the problem"></a></p>
  
  <p>I calculated the worst case as <code>6n+5</code>, and general case as <code>O(n)</code>, is it correct?</p>