Five C programming challenges from a debugging event. Debug the buggy code using the problem statement.
Given an integer, check if it is an Armstrong number. If yes, print the digital root (sum of digits until single digit); otherwise print the number itself.
Print a diamond-shaped number pattern based on input N. Numbers start from 2 in each row, expanding then contracting.
Given two predefined integer arrays of size 10, compute and print their union without duplicates.
Binary search on a predefined sorted array. Print index + 10 if found, else print "Element is not present in array".
Print factorial of N followed by the Fibonacci series up to N terms, each number followed by a space.