title: create Categories and Sub-categories using Ruby language
body: <p>I have been trying to solve this problem all day but haven't got any solution, so could you please help me?
  Here is the problem description:
  The Program should be able to display the bread crumb trail for a given
  Category/SubCategory.
  Ex:
  Input : Public Relations
  Output : Business &amp; Finance >> Advertising &amp; Marketing >> Public Relations.</p>
  
  <p>Here Business &amp; Finance is the primary category, Advertising &amp; Marketing is its sub category and public relations is sub category of Adv &amp; marketing.</p>
  
  <p>I thought about implementing it using recursion, but i am not quite sure how to do it.</p>
  
  <p>Thanks,
  Jimmy</p>