Calculate Runtime for Cubic Time Complexity | FE Prep