Anita is given a puzzle on-chain linking where she has some chains with links and is required to form a long chain with the help of it. But this comes with a few regulations and definite rules. Read the premise, rules, and objective carefully to find the solution to the problem.

Premise – You have five chain parts, each of which has three links. It costs 1 rupee to break open a link, and 3 rupees to solder an open link.

Rule – Is it possible to build a single lengthy chain of the five components with only 15 rupees?

Objective – How will you link these five components to form a long chain?

### Solution

Let’s call the chains given in the puzzle chain linking A, B, C, D, and E where each chain is equipped with three links.

1. Now let us break and open all the three links of chain A. This costs Anita = Rs. 1*3 = 3 Rs.
2. Now Anita can connect chains B and C with one open link that makes it again 3 Rs.
3. Now she can connect chains C and D with another open link which makes it again 3 Rs
4. And finally, she can connect chains D and E with a third open link which costs Anita 3 Rs.

Now on adding money spent in step 1, 2, 3 and 4 = 3+3+3+3 = 12 Rs.

Therefore, as per the rule, she can obtain a long chain out of the given pieces for just 12 Rupees.

## Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

## Checkout list of all the video courses in PrepInsta Prime Subscription

• Fox, Duck and Circular Pond
• Caves and a thief
• Couples crossing the river
• Distance walked to office
• Number game to save life Answer