<p>Write a function that returns the Farey sequence of order n. The function should have one parameter that is n. It should return the sequence as an array. Read the following for more details : </p><p>The <ahref="https://en.wikipedia.org/wiki/Farey sequence"title="wp: Farey sequence">Farey sequence</a> F<sub>n</sub> of order n is the sequence of completely reduced fractions between 0 and 1 which, when in lowest terms, have denominators less than or equal to n, arranged in order of increasing size.</p><p>The Farey sequence is sometimes incorrectly called a Farey series.</p>
<p>Each Farey sequence:</p>
<p>::* starts with the value 0, denoted by the fraction $ \frac{0}{1} $</p>
<p>::* ends with the value 1, denoted by the fraction $ \frac{1}{1}$.</p>
<p>The Farey sequences of orders 1 to 5 are:</p><p>${\bf\it{F}}_1 = \frac{0}{1}, \frac{1}{1}$</p>