Printing the final answer
echo " Minimum ▁ Penalty ▁ in ▁ " . " aligning ▁ the ▁ genes ▁ = ▁ " ; echo $ dp [ $ m ] [ $ n ] . " STRNEWLINE " ; echo " The ▁ aligned ▁ genes ▁ are ▁ : STRNEWLINE " ; for ( $ i = $ id ; $ i <= $ l ; $ i ++ ) { echo $ xans [ $ i ] ; } echo " STRNEWLINE " ; for ( $ i = $ id ; $ i <= $ l ; $ i ++ ) { echo $ yans [ $ i ] ; } return ; }