Consider a game where a player can score 3 or 5 or 10 points in a move. Given a total score n, find number of ways to reach the given score.
Examples:
Input: n = 20
Output: 4
Examples:
Input: n = 20
Output: 4
struct node {
int data;
struct node *left;
struct node *right;
};
need to find out common ancestor of two nodes.