One of my senior asked me to solve this programming puzzle.

Puzzle:: Make a function that returns 9 if you pass 5 on function call. and return 5 if you pass 9 on function call but you don't use any control structure if,switch ternary operator etc.
I implement this puzzle using bellow mentioned code snippet 

```
#include<iostream>
using namespace std;

int myFunction(int value){
    return value%5;
}

int main(){
    int myArray[5]={9,5,5,5,5};
    cout<<myArray[myFunction(9)]<<endl
        <<myArray[myFunction(5)];
    return 0;
}

```

suggest more efficient way to solve this puzzle