def function concatenate(x, y)
{
result_length = length(x) + length(y)
for index in range( 0 to result_length - length(y) )
{
result_string[index] = x[index]
}
for index in range(result_length - length(y) to result_length)
{
result_string[index] = y[index - length(x)]
}
}