You are given an integer n, representing a target space length.
Your task is to calculate the number of distinct ways to achieve the target space length n using individual spaces (which have a length of 1) and tabs (which have a length of 2).
You may assume that:
n will be a non-negative integer.Return the total number of distinct ways.
4
5
There are five distinct ways:
4
5