I have an Array ["Apple", "Orange", "Pineapple"]
How do i convert it to the below list.
<ul>
<li id = "header">A</li>
<li id = "list" >Apple</li>
<li id = "header">O</li>
<li id = "list" >Orange</li>
<li id = "header">P</li>
<li id = "list" >Pineapple</li>
</ul>